]> dgit.raspbian.org Git - gnome-shell.git/commit
fileUtils: Handle symlinks when moving/deleting dirs
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 23 May 2025 20:34:14 +0000 (22:34 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 24 May 2025 13:47:07 +0000 (15:47 +0200)
commit8d6e884bab3806484b17fe4b644721ccf9fde84b
tree0a084402ba9743a78c9d49d0fa026d9cdd9e31e7
parent4eac2aa14b5dd6931b5dbbcda0119b1cf3d1bd6a
fileUtils: Handle symlinks when moving/deleting dirs

We can handle them like regular files for the operations in question,
but we have to do so explicitly. Otherwise the link will not be
moved or removed, and in the latter case prevent the parent
directory from being removed as well (as it ends up non-empty).

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8417
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3721>
js/misc/fileUtils.js
tests/unit/fileUtils.js